package com.yydream.dto;

import com.yydream.common.valid.AddGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
public class CommonUserDTO extends BaseDTO {

    @ApiModelProperty(name = "用户名")
    @NotEmpty(message = "用户名不能为空", groups = {AddGroup.class})
    private String username;

    @ApiModelProperty(name = "密码")
    @NotEmpty(message = "密码不能为空", groups = {AddGroup.class})
    private String password;

    @ApiModelProperty(name = "验证码")
    @NotEmpty(message = "验证码不能为空", groups = {AddGroup.class})
    private String captcha;

}
